﻿using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SPW.Infrastructure.Events
{
    /// <summary>
    /// 对话事件参数
    /// </summary>
    public class DialogEventArgs
    {
        public string Message { get; set; }
        public DialogModelModes DialogModel { get; set; }
        public Action<object> Callback { get; set; }

        public enum DialogModelModes
        {
            Notice,
            Confirm,
        }

        public enum DialogStates
        {
            /// <summary>
            /// 信息
            /// </summary>
            Info,
            /// <summary>
            /// 询问
            /// </summary>
            Question,
            /// <summary>
            /// 警告
            /// </summary>
            Warning,
            /// <summary>
            /// 错误
            /// </summary>
            Error
        }
    }

    public class DialogEvent : PubSubEvent<DialogEventArgs>
    {

    }
}
